package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.AreaStreetDO;
import com.yongbao.model.request.AreaStreetRequest;
import com.yongbao.model.vo.AreaStreetTreeVO;
import com.yongbao.model.vo.AreaStreetVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface AreaStreetDtoMapper {

    AreaStreetDtoMapper INSTANCE = Mappers.getMapper(AreaStreetDtoMapper.class);

    /**
    * DO to VO
    * @param areaStreetDO
    * @return
    */
    AreaStreetVO do2VO(AreaStreetDO areaStreetDO);

    /**
    * DO to tree VO
    * @param areaStreetDO
    * @return
    */
    AreaStreetTreeVO do2TreeVO(AreaStreetDO areaStreetDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    AreaStreetDO request2DO(AreaStreetRequest request);
}
